import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { loading, borderBox2, decoration4 } from '@jiaminghi/data-view'
import { Row, Col, Checkbox, Message, Drawer, Timeline, TimelineItem, Popover } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/index.less'
import ItemWrap from './components/item-wrap/item-wrap.vue'

//引入echart
import 'echarts-liquidfill'
import * as echarts from 'echarts'
import { post, get } from './https'
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$message = Message

import Global from '@/js/api.js' // 将export default 赋给临时对象变量Global
Vue.prototype.$sysData = Global // 将Global赋给$sysData,$只是标记全局变量，区分其他变量，可以不用$
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false

// datav组件
Vue.use(loading)
Vue.use(borderBox2)
Vue.use(decoration4)

// ELement ui组件
Vue.use(Row)
Vue.use(Col)
Vue.use(Checkbox)
Vue.use(Drawer)
Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Popover)

// 自定义组件
Vue.component('ItemWrap', ItemWrap)

Vue.prototype.$map = null

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
